#include "Dialogs/rotationdialog.h"
#include "ui_rotationdialog.h"

RotationDialog::RotationDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::RotationDialog)
{
    ui->setupUi(this);

    connect(ui->degreeDial, SIGNAL(valueChanged(int)),
            this, SIGNAL(degreeChanged(int)));
    connect(ui->degreeSpinBox, SIGNAL(valueChanged(int)),
            this, SIGNAL(degreeChanged(int)));
}

RotationDialog::~RotationDialog()
{
    delete ui;
}

void RotationDialog::on_degreeDial_valueChanged(int value)
{
    emit degreeChanged(value);
}
